/**
 * Project: Utilities <br>
 * Package: org.leumasjaffe.mathematics.probability
 */
package org.leumasjaffe.math.probability;

import java.util.Random;

import org.eclipse.jdt.annotation.NonNullByDefault;

/**
 * Class org.leumasjaffe.mathematics.probability..ContinuousRV in file ContinuousRV.java <br>
 * 
 * @author leumasjaffe
 * @version Jun 18, 2013
 * Created on: Jun 18, 2013
 * 
 */
@NonNullByDefault
public abstract class ContinuousRV extends AbstractRV {
	
//	static abstract class ContinuousRVWithFunction extends ContinuousRV {
//		
//		private final Function pdf, cdf;
//		
//		/**
//		 * 
//		 */
//		protected ContinuousRVWithFunction(Function pdf) {
//			this.pdf = pdf;
//			this.cdf = pdf.integral();
//		}
//
//		/**
//		 * @param r
//		 */
//		protected ContinuousRVWithFunction(Random r, Function pdf) {
//			super(r);
//			this.pdf = pdf;
//			this.cdf = pdf.integral();
//		}
//		
//		/* (non-Javadoc)
//		 * @see org.leumasjaffe.mathematics.probability.AbstractRV#getP(double)
//		 */
//		@Override
//		public double getP(double x) {
//			return this.pdf.eval(x);
//		}
//
//		/* (non-Javadoc)
//		 * @see org.leumasjaffe.mathematics.probability.AbstractRV#calcX(double)
//		 */
//		@Override
//		public double calcX(double p) {
//			// TODO Auto-generated method stub
//			return 0;
//		}
//
//		/* (non-Javadoc)
//		 * @see org.leumasjaffe.mathematics.probability.AbstractRV#getF(double)
//		 */
//		@Override
//		public double getF(double x) {
//			return this.cdf.eval(x);
//		}
//		
//	}

	/**
	 * 
	 */
	protected ContinuousRV() {
	}

	/**
	 * @param r
	 */
	protected ContinuousRV(Random r) {
		super(r);
	}

}
